
package nc.impl.mmpsc.mm_yichangduban.mmpsc_yichangduban;

import java.util.Arrays;

import org.apache.commons.lang3.ArrayUtils;

import nc.bs.framework.common.NCLocator;
import nc.vo.pub.BusinessException;
import nc.vo.pub.CircularlyAccessibleValueObject;
import nc.vo.pub.SuperVO;
import nc.vo.pub.ISuperVO;
import nc.vo.pub.IVOMeta;
import nc.vo.pub.VOStatus;
import nc.vo.pubapp.pattern.model.meta.entity.bill.IBillMeta;
import nc.vo.trade.pub.HYBillVO;
import nc.vo.pubapp.pattern.model.entity.bill.AbstractBill;
import nccloud.bs.excel.IXChangeContext;
import nccloud.bs.excel.plugin.AbstractImportProceeWithContext;
import nc.vo.mmpsc.mm_yichangduban.Mmpsc_yichangdubanVO;
import nc.vo.mmpsc.mm_yichangduban.AggMmpsc_yichangdubanVO;
import nc.itf.mmpsc.mm_yichangduban.mmpsc_yichangduban.IMmpsc_yichangdubanVOService;

public class AggMmpsc_yichangdubanVOImportProcess extends AbstractImportProceeWithContext {
	
	@Override
	protected void processBillWithContext(Object vo, IXChangeContext changcontext) throws BusinessException {
		
		AggMmpsc_yichangdubanVO targetVO = null;
		SuperVO headVO = (SuperVO)((HYBillVO)vo).getParentVO();
   		targetVO = new AggMmpsc_yichangdubanVO();
   		targetVO.setParentVO(headVO);
  		getService().initDefaultData(targetVO.getParentVO());
		getService().saveAggMmpsc_yichangdubanVO(targetVO);
	}
	
	private IMmpsc_yichangdubanVOService getService() {
		return NCLocator.getInstance().lookup(IMmpsc_yichangdubanVOService.class);
	}

}
